package com.pattern.design.designpattern.Builder;

/**
 * author:harisucici on 2018/10/9 09:42
 * email:harisucici@gmail.com
 * name:
 * todo:
 */
public class MacbookBuilder extends Builder {
    private Computer mComputer = new Macbook();
    @Override
    public MacbookBuilder setBoard(String board) {
        mComputer.setBoard(board);
        return this;
    }

    @Override
    public MacbookBuilder setDisplay(String display) {
        mComputer.setmDisplay(display);
        return this;
    }

    @Override
    public MacbookBuilder setOS() {
        mComputer.setOS();
        return this;
    }

    @Override
    public Computer creat() {
        return mComputer;
    }
}
